x86-64: Fix memory hotplug epfn upper limit test for updating the compat M2P table
authorMalcolm Crossley <malcolm.crossley@citrix.com>
Wed, 25 Apr 2012 10:35:56 +0000 (12:35 +0200)
committerMalcolm Crossley <malcolm.crossley@citrix.com>
Wed, 25 Apr 2012 10:35:56 +0000 (12:35 +0200)
commitf1434c2e8e57aa9f75ea8d20612396524df8cd96
treed108432929aaf086a1f9dcba95a9dc960b645df4
parent57c15d9691047ef84789e37e4f860a92372470cd
x86-64: Fix memory hotplug epfn upper limit test for updating the compat M2P table

The epfn is being compared to (RDWR_COMPAT_MPT_VIRT_END -
RDWR_COMPAT_MPT_VIRT_START) without a 2 bit shift, resulting in the
epfn being compared to the size of the RDWR_COMPAT_MPT table in bytes
instead of the maximum page frame number that the RDWR_COMPAT_MPT
table can map.

Signed-off-by: Malcolm Crossley <malcolm.crossley@citrix.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/x86_64/mm.c